//获取轮播图

import { observer,inject } from 'mobx-react'
import axios from "axios"


export const bannerApi = () =>{
    return fetch("http://106.12.79.128:666/banner")
    .then(body=>body.json())
    .then(res=>{
        console.log(res)
        return res
    })
    }
//获取日推歌单
export const rtApi = () =>{
    return fetch("http://106.12.79.128:666/personalized?limit=6")
    .then(body=>body.json())
    .then(res=>{
        console.log(res)
        return res
    })
    }    
// 获取新碟
export const xdApi = () =>{
    return fetch("http://106.12.79.128:666/top/album?offset=0&limit=3")
    .then(body=>body.json())
    .then(res=>{
        return res
    })
}
//获取新歌
export const xgApi = () =>{
    return fetch("http://106.12.79.128:666/recommend/songs?limit=3")
    .then(body=>body.json())
    .then(res=>{
        console.log(res);
        
        return res
    })
}
export const top=()=>axios({
    url: "http://106.12.79.128:666/toplist/detail",
    method:'get',
 })
 